<!-- 博客编辑页面 -->

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../CSS/Common.css">
    <link rel="stylesheet" href="../CSS/edit.css">
</head>
<body>
    <!-- 1. 导航栏 -->
    <div class="nav">
        <img src="../img/logo.png" alt="图片加载失败">
        <span>我的博客系统</span>
        <!-- 因为有一段距离，所以用一个 span 进行占位 -->
        <span class="space"></span>
        <a href="./blog_list.html">主页</a>
        <a href="./blog_edit.html">写博客</a>
        <a href="https://baidu.com/">注销</a>
    </div>

    <div class="edit_blog_container">
        <div class="title">
            <input type="text">
            <button>发布文章</button>
        </div>

        <div id="editor">
            <!-- 富文本 -->
        </div>
    </div>
</body>
<!-- 引入 editor.md 的依赖 -->
<link rel="stylesheet" href="editor.md/css/editormd.min.css" />
<script src="../js/jquery.min.js"></script>
<script src="editor.md/lib/marked.min.js"></script>
<script src="editor.md/lib/prettify.min.js"></script>
<script src="editor.md/editormd.js"></script>

<script>
    let edit = editormd('editor',{
        width:'100%',
        height:"calc(100% - 60px)",
        markdown:"### 请开始编写你的博客",
        path:"./editor.md/lib/"
    })
</script>
</html>